package com.vini.core.ec;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "company", catalog = "hopon")
public class Company implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	
	private Long PCompanyId;
	private String name;
	private int destinationId;
	private int roleTaxiCompany;
	private String rate;
	private String areas;
	private Integer rating;
	private Date registeredDate;
	private Integer circleId;
	private String address;
	private String sector;
	private String branches;
	private Integer employeeNumber;

	
	@Id
	@Column(name = "P_Company_Id", unique = true, nullable = false)
	public Long getPCompanyId() {
		return this.PCompanyId;
	}

	public void setPCompanyId(Long PCompanyId) {
		this.PCompanyId = PCompanyId;
	}

	@Column(name = "Name", nullable = false, length = 45)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "Destination_ID", nullable = false)
	public int getDestinationId() {
		return this.destinationId;
	}

	public void setDestinationId(int destinationId) {
		this.destinationId = destinationId;
	}

	@Column(name = "Role_taxi_company", nullable = false)
	public int getRoleTaxiCompany() {
		return this.roleTaxiCompany;
	}

	public void setRoleTaxiCompany(int roleTaxiCompany) {
		this.roleTaxiCompany = roleTaxiCompany;
	}

	@Column(name = "Rate", length = 45)
	public String getRate() {
		return this.rate;
	}

	public void setRate(String rate) {
		this.rate = rate;
	}

	@Column(name = "Areas", nullable = false, length = 45)
	public String getAreas() {
		return this.areas;
	}

	public void setAreas(String areas) {
		this.areas = areas;
	}

	@Column(name = "Rating")
	public Integer getRating() {
		return this.rating;
	}

	public void setRating(Integer rating) {
		this.rating = rating;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "Registered_date", nullable = false, length = 10)
	public Date getRegisteredDate() {
		return this.registeredDate;
	}

	public void setRegisteredDate(Date registeredDate) {
		this.registeredDate = registeredDate;
	}

	@Column(name = "Circle_id")
	public Integer getCircleId() {
		return this.circleId;
	}

	public void setCircleId(Integer circleId) {
		this.circleId = circleId;
	}

	@Column(name = "Address")
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "Sector", length = 45)
	public String getSector() {
		return this.sector;
	}

	public void setSector(String sector) {
		this.sector = sector;
	}

	@Column(name = "Branches", length = 45)
	public String getBranches() {
		return this.branches;
	}

	public void setBranches(String branches) {
		this.branches = branches;
	}

	@Column(name = "EmployeeNumber")
	public Integer getEmployeeNumber() {
		return this.employeeNumber;
	}

	public void setEmployeeNumber(Integer employeeNumber) {
		this.employeeNumber = employeeNumber;
	}

}
